package se.perp.c4.ui;

import java.awt.Font;
import java.util.logging.Level;
import java.util.logging.Logger;

public class FontSet {

    private FontSet() {
    }

    static {
        SELECTION_MSG = new Font(Font.SANS_SERIF, Font.BOLD, 20);
        CARD_ATK_VALUE = new Font(Font.SERIF, Font.BOLD, 36);
        CARD_CAPTION = new Font(Font.SERIF, Font.BOLD, 14);
        MAP_CENTERED_MSG = new Font(Font.SANS_SERIF, Font.BOLD, 48);

        PORTRAIT_LABEL = new Font(Font.SANS_SERIF, Font.BOLD, 12);
        PORTRAIT_ATK_VALUE = new Font(Font.SANS_SERIF, Font.BOLD, 24);

        Font f, f1, f2;
        try {
            f = Font.createFont(Font.TRUETYPE_FONT,
                    FontSet.class.getResourceAsStream("/fonts/ALTEM___.TTF"));
            f1 = f.deriveFont(Font.BOLD, 18);
            f2 = f.deriveFont(Font.PLAIN, 84);
        } catch (Exception ex) {
            f1 = new Font(Font.SERIF, Font.BOLD, 72);
            f2 = new Font(Font.SERIF, Font.BOLD, 24);
            Logger.getLogger(ActorViewer.class.getName()).log(Level.SEVERE, ex.getMessage(), ex);
        }
        CARDPICKER_CAPTION = f1;
        ACTORVIEWER_ATK_VALUE = f2;

        try {
            f = Font.createFont(Font.TRUETYPE_FONT,
                    FontSet.class.getResourceAsStream("/fonts/kelmscot.ttf"));
            f = f.deriveFont(Font.BOLD, 16);
        } catch (Exception ex) {
            f = new Font(Font.SERIF, Font.BOLD, 14);
            Logger.getLogger(ActorViewer.class.getName()).log(Level.SEVERE, ex.getMessage(), ex);
        }
        TERRITORY_NAME = f;

        try {
            f = Font.createFont(Font.TRUETYPE_FONT,
                    FontSet.class.getResourceAsStream("/fonts/anirb___.ttf"));
            f = f.deriveFont(Font.PLAIN, 16);
        } catch (Exception ex) {
            f = new Font(Font.SANS_SERIF, Font.BOLD, 16);
            Logger.getLogger(ActorViewer.class.getName()).log(Level.SEVERE, ex.getMessage(), ex);
        }
        ACTORVIEWER_NAME = f;

        ACTORVIEWER_TEXT = new Font(Font.SERIF, Font.BOLD, 14);

        MAP_SELECTION_MSG = new Font(Font.SANS_SERIF, Font.BOLD, 14);

        INFOPANEL_TEXT = new Font(Font.SANS_SERIF, Font.BOLD, 12);

        GAMEPIECE = new Font(Font.SANS_SERIF, Font.PLAIN, 10);

        try {
            f = Font.createFont(Font.TRUETYPE_FONT, FontSet.class.getResourceAsStream("/fonts/Dorcla__.ttf"));
            f = f.deriveFont(Font.BOLD, 48);
        } catch (Exception ex) {
            f = new Font(Font.SANS_SERIF, Font.BOLD, 16);
            Logger.getLogger(BattleResultDialog.class.getName()).log(Level.SEVERE, null, ex);
        }
        BATTLERESULT_VS = f;
    }
    
    public static final Font GAMEPIECE;
    public static final Font SELECTION_MSG;
    public static final Font CARD_ATK_VALUE;
    public static final Font CARD_CAPTION;
    public static final Font MAP_CENTERED_MSG;
    public static final Font PORTRAIT_LABEL;
    public static final Font PORTRAIT_ATK_VALUE;
    public static final Font ACTORVIEWER_ATK_VALUE;
    public static final Font ACTORVIEWER_NAME;
    public static final Font ACTORVIEWER_TEXT;
    public static final Font MAP_SELECTION_MSG;
    public static final Font CARDPICKER_CAPTION;
    public static final Font TERRITORY_NAME;
    public static final Font INFOPANEL_TEXT;
    public static final Font BATTLERESULT_VS;
}
